//
//  JourneyCollectionViewCell.m
//  Travel_M_Travel
//
//  Created by APPLE10 on 15-3-23.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "JourneyCollectionViewCell.h"
#import "UIImageView+WebCache.h"
@implementation JourneyCollectionViewCell

-(void)dealloc
{
    [_fourImageView release];
    [_jourDetilData release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.fourImageView = [[UIImageView alloc]initWithFrame:self.bounds];
        _fourImageView.backgroundColor = [UIColor greenColor];
        _fourImageView.layer.cornerRadius = 30;
        [self addSubview:_fourImageView];
        
        [_fourImageView release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    NSString *str = _jourDetilData.cover_s;
//    NSLog(@"%@",str);
    
    str = [str stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSURL *url = [NSURL URLWithString:str];
    [_fourImageView setImageWithURL:url];
}

@end
